package com.book.dao;

import java.util.List;

import com.book.bean.Book;
import com.book.bean.Messagess;
import com.book.bean.PageVo;
import com.book.bean.Reply;

public interface MessageDao {
	//查询所有留言
	public List<Messagess> listAllMsg() throws Exception;
	//查询我全部的留言
	public List<Messagess> listMyMsg(String uname) throws Exception;
	//添加我的留言
	public boolean addMessage(Messagess message) throws Exception;
	//修改我的留言
	public boolean modifyMessage(int mid) throws Exception;
	//删除我的留言
	public boolean deleteMessage(int mid) throws Exception;
	//根据ID查询相应的数据
	public Messagess listMsgById(int mid) throws Exception;
	//获取用户数
	public int getCount() throws Exception;
	//分页查询我的留言
	public PageVo<Messagess> listMyMsg(int pageIndex, int pageSize, String uname) throws Exception;
	//分页查询全部留言
	public PageVo<Messagess> listAllMsg(int pageIndex, int pageSize) throws Exception;
	//根据留言编号查询
	public Messagess getOneMesssage(int mid) throws Exception;
	//添加回复留言
	public boolean addReply(Reply reply) throws Exception;
	//查询一条留言的所有回复信息
	public List<Reply> listReply(int mid) throws Exception;
}
